package com.u.iot.sleep.controller;

import com.u.iot.sleep.service.SleepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @program: u-InternetOfThings
 * @description: 收集控制层
 * @author: Alex Wu
 * @createDate: 2025-03-21 14:30
 **/

@RestController
@RequestMapping("/collect")
public class CollectController {

    @Autowired
    private SleepService sleepService;

    @GetMapping("")
    public Boolean collect() {
        sleepService.sendMessage();
        return true;
    }
}
